/**
 * elancom Corporation copy right 2012 - 2015  
 *   
 * $Header$
 * $Id$
 * $Author$
 * $Date$
 * $Revision$
 */
package com.elancom.framework.component;

/**
 * @author elancom
 * @date 2012-8-27
 */
public abstract class AbstractService {
	protected InputFactory inputFactory = null;

	protected ComponentInvoker componentInvoker;

	/**
	 * @return the inputFactory
	 */
	public InputFactory getInputFactory() {
		return inputFactory;
	}

	/**
	 * @param inputFactory
	 *            the inputFactory to set
	 */
	public void setInputFactory(InputFactory inputFactory) {
		this.inputFactory = inputFactory;
	}

	/**
	 * @return the componentInvoker
	 */
	public ComponentInvoker getComponentInvoker() {
		return componentInvoker;
	}

	/**
	 * @param componentInvoker
	 *            the componentInvoker to set
	 */
	public void setComponentInvoker(ComponentInvoker componentInvoker) {
		this.componentInvoker = componentInvoker;
	}

	protected Input createInput() {
		return inputFactory.create();
	}
}
